package com.easylinkin.linkappapi.deviceservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备服务租户个性化配置
 * </p>
 *
 * @author TongJie
 * @since 2020-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("linkapp_device_service_tenant_config")
@ApiModel(description = "设备服务租户个性化配置实体类")
public class DeviceServiceTenantConfig extends Model<DeviceServiceTenantConfig> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    @ApiModelProperty(value = "主键ID", required = false, example = "")
    private String id;

    /**
     * 租户id
     */
    @TableField("tenant_id")
    @ApiModelProperty(value = "租户ID", required = false, example = "")
    private String tenantId;

    /**
     * 设备服务id
     */
    @TableField("device_service_id")
    @ApiModelProperty(value = "设备服务ID", required = false, example = "")
    private String deviceServiceId;

    /**
     * 设备服务名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "设备服务名称", required = false, example = "")
    private String deviceServiceName;

    /**
     * 型号id
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "设备型号ID", required = false, example = "")
    private String deviceUnitId;

    /**
     * 排序
     */
    @TableField("sort_no")
    @ApiModelProperty(value = "排序", required = false, example = "")
    private Integer sortNo;

    /**
     * 是否默认显示,默认不显示，0-不显示，1-显示
     */
    @TableField("is_show")
    @ApiModelProperty(value = "是否默认显示", required = false, example = "")
    private Boolean isShow;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
